package com.lixinkeji.widget

import android.content.Context
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatTextView
import com.lixinkeji.base.R

/**
 *
 * @ClassName FakeTextView
 * @Author lwc
 * @Email 1679114787@qq.com
 * @Date 2022/1/6 18:47
 *
 */
class FakeTextView : AppCompatTextView {
    constructor(context: Context) : this(context, null)
    constructor(context: Context, attrs: AttributeSet?) : this(context, attrs, 0)
    constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(
        context,
        attrs,
        defStyleAttr
    ) {
        val array = context.obtainStyledAttributes(attrs, R.styleable.FakeTextView)
        paint.isFakeBoldText = array.getBoolean(R.styleable.FakeTextView_isFakeBold, false)
        array.recycle()
    }
}